<div class="modal-header">
    <h3 class="modal-title" ng-bind="title"></h3>
</div>
<div class="modal-body">
    <form class="smart-form" novalidate="novalidate">
        <fieldset>
            <div class="row">
                <section class="col col-6">
                    <label>功能名称：</label>
                    <div>
                        <label class="input">
                            <input class="form-control" name="funcName" ng-model="func.funcName" placeholder="功能名称" type="text" >
                        </label>
                    </div>
                </section>
                <section class="col col-6">
                    <label>功能代码：</label>
                    <div>
                        <label class="input">
                            <input class="form-control" name="funcCode" ng-model="func.funcCode" placeholder="功能代码" type="text" >
                        </label>
                    </div>
                </section>
            </div>
            <div class="row">
                <section class="col col-6">
                    <label>操作：</label>
                    <div>
                        <label class="input">
                            <input class="form-control" name="funcAction" ng-model="func.funcAction" placeholder="操作" type="text" >
                        </label>
                    </div>
                </section>
                <section class="col col-6">
                    <label>权限：</label>
                    <div>
                        <label class="input">
                            <input class="form-control" name="funcAuthorize" ng-model="func.funcAuthorize" placeholder="权限" type="text" >
                        </label>
                    </div>
                </section>
            </div>
            <div class="row">
                <section class="col col-6">
                    <label>上级功能：</label>
                    <div>
                        <label class="input">
                            <input class="form-control" name="upId" ng-model="func.upId" placeholder="上级功能" type="hidden" >
                            <input class="form-control" ng-value="upFunc.funcName" placeholder="上级功能" type="text" readonly="readonly">
                        </label>
                    </div>
                </section>
                <section class="col col-6">
                    <label>位置：</label>
                    <div>
                        <label class="input">
                            <select ng-options="pos.value as pos.desc for pos in positions" class="form-control" name="funcPosition" ng-model="func.funcPosition" placeholder="显示位置">
                                <option value="">-- 选择位置 --</option>
                            </select>
                        </label>
                    </div>
                </section>
            </div>
            <div class="row">
                <section class="col col-6">
                    <label>图标： <i class="{{func.funcIco}}"></i></label>
                    <div>
                        <label class="input">
                            <i dv-icon-select="" ng-model="func.funcIco" class="icon-append {{func.funcIco}}"></i>
                            <input class="form-control" name="funcIco" ng-model="func.funcIco" placeholder="显示图标" type="text" >
                        </label>
                    </div>
                </section>
            </div>
        </fieldset>
    </form>
</div>
<div class="modal-footer">
    <button class="btn btn-primary" ng-click="ok()">OK</button>
    <button class="btn btn-warning" ng-click="cancel()">Cancel</button>
    <button class="btn btn-cancel" ng-click="reset()">reset</button>
</div>